package com.pz.chat.constant;

import lombok.Getter;

@Getter
public enum MessageCodeEnum {
    SERVER_CLOSE(1001, "服务已下线请重新连接~"),
    CLIENT_CUTOFF(1002,"客户端不在线"),
    ILLEGAL_MSG_FROMAT(1003, "非法消息格式");

    private final Integer code;
    private final String msg;

    MessageCodeEnum(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }
}
